import request from '@/utils/request'

// 查询手术事件列表
export function listSurgeryevent(query) {
  return request({
    url: '/manage/surgeryevent/list',
    method: 'get',
    params: query
  })
}

// 查询手术事件详细
export function getSurgeryevent(eventSurgeryId) {
  return request({
    url: '/manage/surgeryevent/' + eventSurgeryId,
    method: 'get'
  })
}

// 新增手术事件
export function addSurgeryevent(data) {
  return request({
    url: '/manage/surgeryevent',
    method: 'post',
    data: data
  })
}

// 修改手术事件
export function updateSurgeryevent(data) {
  return request({
    url: '/manage/surgeryevent',
    method: 'put',
    data: data
  })
}

// 删除手术事件
export function delSurgeryevent(eventSurgeryId) {
  return request({
    url: '/manage/surgeryevent/' + eventSurgeryId,
    method: 'delete'
  })
}
